package com.hnust.api;


import com.hnust.domain.Result;
import com.hnust.domain.Test;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import retrofit2.http.POST;

import java.util.List;

@FeignClient(
        name = "testPaperApis",
        url = "${feign.baseUrl}"
)
public interface TestPaperApis {
    @PostMapping("/examSystem/getAllExam")
    Result<List<Test>> getAllExam(@RequestParam("subject") String subject, @RequestParam("pap_name") String pap_name);
}
